﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Crochet.Core.Policy
{
	public interface IExecutionPolicy
	{
		IScheduler RootScheduler
		{
			get;
			set;
		}

		SchedulerDelegate SchedulerProcess
		{
			get;
		}

		ExceptionHandlerDelegate ExceptionHandlerDelegate
		{
			get;
		}

		void Execute(IScheduler sSourceScheduler);

		IExecutionPolicy Clone(SchedulerDelegate sdSchedulerProcess, ExceptionHandlerDelegate ehdExceptionHandlerDelegate);
	}
}
